package com.example.demo.service;


import com.example.demo.entity.TbBlogEntity;

import java.util.List;
import java.util.Map;

public interface TbBlogService {
    public boolean pushBlog(String title, String content, String [] tagNames);
    public Map<String, Object> getBlogsByPage(int index, int size);
    public void deleteBlogById(int [] ids);
    public void updateBlogById(int id, boolean changeContent, String text);
    public Map<String, Object> getBlogsByTagName(String tagName, Integer index, Integer size);
    public Map<String, Object> getBlogMessageById(Integer id, Integer index, Integer size);
    public void deleteMessageForBlogById(Integer id);
    public void like(Integer id);
    public Map<String, Object> getBlogByLike(String value, Integer index, Integer size);
    public List<TbBlogEntity> getBlogByLikeId(Integer id);
}
